import request from '@/utils/request';

export async function getEhsInfoByPage (params: any) {
    return request('/api/device/getEhsInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addEhsInfo (params: any) {
    return request('/api/device/addEhsInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateEhsInfo (params: any) {
    return request('/api/device/updateEhsInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delEhsInfo (params: any) {
    return request('/api/device/delEhsInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportEhsInfo(params: any) {
    return request('/api/device/exportEhsInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getEhsInfoByPage, addEhsInfo, updateEhsInfo, delEhsInfo, exportEhsInfo }
